<template>
  <div>
    <span class="green">webpack5 Vue3 {{ count }} </span>
    <button @click="increment">计算</button>
  </div>
</template>

<script>
import { defineComponent } from "vue";
const MyComponent = defineComponent({
  data() {
    return { count: 1 };
  },
  mounted() {
    console.log(987654);
  },
  methods: {
    increment() {
      this.count++;
    },
  },
});
export default MyComponent;
</script>

<style scoped>
  .green {
    color: red;
  }
</style>